cmake_minimum_required(VERSION 4.1)
project(esptools)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)


find_package(Qt6 COMPONENTS
        Core
        Gui
        Widgets
        SerialPort
        REQUIRED)

add_executable(esptools main.cpp layout.cpp layout.h layout.ui)

target_link_libraries(esptools
        Qt::Core
        Qt::Gui
        Qt::Widgets
        Qt::SerialPort
)
